link_directories(${Com_cache_lib})
include_directories(${Com_cache_head})

if(CMAKE_SUPPORT_STEP_MOTOR)
    include_directories(InPerSteppingMotor)
    add_subdirectory(InPerSteppingMotor)
endif()

if(CMAKE_SUPPORT_STEEP_ENGINE)
    include_directories(InPerSteeringEngine)
    add_subdirectory(InPerSteeringEngine)
endif()

include_directories(InPerUart)
include_directories(InPerKey)
include_directories(InPerLed)

add_subdirectory(InPerKey)
add_subdirectory(InPerLed)
add_subdirectory(InPerUart)

set(Per_cache_lib ${Per_cache_lib} ${PerLib} CACHE STRING INTERNAL FORCE)
